package org.example.seata.bs.api.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订单详情
 *
 * @author hzq
 * @date 2021/11/17 11:36
 */
@Data
@TableName("`order_info`")
public class OrderInfo extends Model<OrderInfo> {

    @TableId(type = IdType.AUTO)
    private Integer orderInfoId;
    /**
     * 订单id
     */
    private Integer orderId;
    /**
     * 产品id
     */
    private Integer productId;
    /**
     * 产品数量
     */
    private BigDecimal productCount;
    /**
     * 产品单价
     */
    private BigDecimal productPrice;
    /**
     * 产品总价
     */
    private BigDecimal productTotalPrice;
}
